package com.maogouxiong.seatatestaccount.account.service.impl;

import com.maogouxiong.seatatestaccount.account.entity.Account;
import com.maogouxiong.seatatestaccount.account.mapper.AccountMapper;
import com.maogouxiong.seatatestaccount.account.service.AccountService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author maogouxiong
 * @since 2020-06-19
 */
@Service
public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> implements AccountService {

    @Autowired
    private AccountMapper accountMapper;

    @Override
    public void reduceBalance(Account account) {
        accountMapper.reduceBalance(account);
    }
}
